package com.mirror.llk.bean.response;

import com.mirror.llk.utils.Interface;

/**
 * 相应基类.
 * <p>
 * Copyright: Copyright (c) Mar 1, 2013 5:01:10 PM
 * <p>
 * Company: 北京幻方朗睿技术有限公司
 * <p>
 * Author: 李晖
 * <p>
 * Version: 1.0
 * <p>
 */
public class BaseResponse {

	/** 返回码 */
	protected String resultCode;

	/** 返回消息 */
	protected String resultMsg;

	public BaseResponse() {
	}

	public BaseResponse(String resultCode) {
		this.resultCode = resultCode;
		this.resultMsg = Interface.ERROR_MESSAGE.get(resultCode);
	}

	public BaseResponse(String resultCode, String resultMsg) {
		this.resultCode = resultCode;
		this.resultMsg = resultMsg;
	}

	public String getResultCode() {
		return resultCode;
	}

	public void setResultCode(String resultCode) {
		this.resultCode = resultCode;
	}

	public String getResultMsg() {
		return resultMsg;
	}

	public void setResultMsg(String resultMsg) {
		this.resultMsg = resultMsg;
	}

	@Override
	public String toString() {
		return "BaseResponse [resultCode=" + resultCode + ", resultMsg=" + resultMsg + "]";
	}

}
